using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class SysRoleRightRel
    {
        /// <summary>
        /// role_right_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary(Automatic = true)]
        public int RoleRightId { get; set; }

        /// <summary>
        /// is_checked
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(1, false)]
        public bool IsChecked { get; set; }

        /// <summary>
        /// role_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int RoleId { get; set; }

        /// <summary>
        /// right_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int RightId { get; set; }

        /// <summary>
        /// right_keys
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int RightKeys { get; set; }

    }
}
